//
//  LSGetTextDivideInfoManager.m
//  听说弱点强化训练
//
//  Created by 盛超 on 2018/9/13.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "LSGetTextDivideInfoManager.h"

@implementation LSGetTextDivideInfoManager

- (void)requestWithCompltionSuccess:(void (^)(NSArray *))success failuer:(void (^)(NSString *))failure {
    
    self.requestUrl = @"api/ZXYYTS/W_ZXYYTS_GetTextDivideInfo";
    [self requestPostMethodWithSuccess:^(id responseObject) {
        
        NSArray *array = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];
        NSLog(@"%@",[NSObject objectToJson:array]);
        NSMutableArray *muarr = [NSMutableArray array];
        for (NSDictionary *dict in array) {
            LSTextDivide *list = [LSTextDivide yy_modelWithDictionary:dict];
            [muarr addObject:list];
        }
        success(muarr);
        
    } Failure:^(NSError *error) {
        failure(error.localizedDescription);
    }];
}

@end

@implementation LSTextDivide

@end
